{% extends "_base.html" %}
{% block bodycontent %}

<h2>Regex Helper: v{{ version }} Help</h2>
<h3>Regex Help</h3>
<p>
  For general regex help, I recommend the <a href="http://perldoc.perl.org/perlre.html">Perl</a> and <a href="http://docs.python.org/library/re.html">Python</a> help pages.  They have been of inestimable help to me along my regex learning curve, and they cover topics well beyond the scope of this document.
</p>
<h3>Flags</h3>
<p>
  The Regex Helper supports the following flags:
  <ul>
    <li><strong>i</strong>: Case-insensitive mode.  The first regex pattern you enter will ignore case, so for example &quot;a&quot; will match &quot;a&quot; and &quot;A&quot;.</li>
    <li><strong>m</strong>: Multiline mode.  The &quot;^&quot; and &quot;$&quot; characters normally only match at the beginning and end of the text, respectively.  In multiline mode, they also match at the beginning and end of each line, or immediately following and preceding each newline.</li>
    <li><strong>s</strong>: Dot-all mode.  The &quot;.&quot; character normally matches every character except a newline character.  With this flag, &quot;.&quot; matches newlines too.</li>
    <li><strong>x</strong>: Verbose mode.  Any whitespace in your pattern is ignored, except if it's escaped or in a character class.  This lets you lay out slightly less obscure regices.</li>
    <li><strong>g</strong>: Global mode.  In global mode, your pattern is applied to the entire text.  This causes the &quot;Count&quot; field to be ignored.</li>
  </ul>
</p>

{% endblock %}
